# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ventanaNuevaVenta.ui'
#
# Created: Thu Apr 19 00:31:21 2012
#      by: PyQt4 UI code generator 4.9.1
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(506, 489)
        self.layoutWidget = QtGui.QWidget(Form)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 23, 481, 445))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_8.setMargin(0)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.label_3 = QtGui.QLabel(self.layoutWidget)
        font = QtGui.QFont()
        font.setPointSize(36)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_8.addWidget(self.label_3)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.label_4 = QtGui.QLabel(self.layoutWidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayout_4.addWidget(self.label_4)
        self.spinCodigo = QtGui.QSpinBox(self.layoutWidget)
        self.spinCodigo.setMinimum(1)
        self.spinCodigo.setObjectName(_fromUtf8("spinCodigo"))
        self.verticalLayout_4.addWidget(self.spinCodigo)
        self.horizontalLayout.addLayout(self.verticalLayout_4)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.textoArticulo = QtGui.QLabel(self.layoutWidget)
        self.textoArticulo.setObjectName(_fromUtf8("textoArticulo"))
        self.verticalLayout_3.addWidget(self.textoArticulo)
        self.comboArticulo = QtGui.QComboBox(self.layoutWidget)
        self.comboArticulo.setObjectName(_fromUtf8("comboArticulo"))
        self.verticalLayout_3.addWidget(self.comboArticulo)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.textoCantidad = QtGui.QLabel(self.layoutWidget)
        self.textoCantidad.setObjectName(_fromUtf8("textoCantidad"))
        self.verticalLayout_2.addWidget(self.textoCantidad)
        self.spinCantidad = QtGui.QSpinBox(self.layoutWidget)
        self.spinCantidad.setMinimum(1)
        self.spinCantidad.setObjectName(_fromUtf8("spinCantidad"))
        self.verticalLayout_2.addWidget(self.spinCantidad)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.textoPrecio = QtGui.QLabel(self.layoutWidget)
        self.textoPrecio.setObjectName(_fromUtf8("textoPrecio"))
        self.verticalLayout.addWidget(self.textoPrecio)
        self.spinPrecio = QtGui.QSpinBox(self.layoutWidget)
        self.spinPrecio.setMinimum(1)
        self.spinPrecio.setMaximum(999999999)
        self.spinPrecio.setObjectName(_fromUtf8("spinPrecio"))
        self.verticalLayout.addWidget(self.spinPrecio)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_8.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.pushButton = QtGui.QPushButton(self.layoutWidget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout_3.addWidget(self.pushButton)
        self.verticalLayout_8.addLayout(self.horizontalLayout_3)
        self.treeWidget = QtGui.QTreeWidget(self.layoutWidget)
        self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
        self.treeWidget.headerItem().setText(1, _fromUtf8("Articulo"))
        self.treeWidget.headerItem().setTextAlignment(4, QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.verticalLayout_8.addWidget(self.treeWidget)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem1 = QtGui.QSpacerItem(58, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.pushButton_3 = QtGui.QPushButton(self.layoutWidget)
        self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
        self.horizontalLayout_2.addWidget(self.pushButton_3)
        self.label = QtGui.QLabel(self.layoutWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_2.addWidget(self.label)
        self.labelTotal = QtGui.QLabel(self.layoutWidget)
        self.labelTotal.setObjectName(_fromUtf8("labelTotal"))
        self.horizontalLayout_2.addWidget(self.labelTotal)
        self.verticalLayout_8.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.textoForma = QtGui.QLabel(self.layoutWidget)
        self.textoForma.setMinimumSize(QtCore.QSize(46, 17))
        self.textoForma.setObjectName(_fromUtf8("textoForma"))
        self.verticalLayout_5.addWidget(self.textoForma)
        self.comboForma = QtGui.QComboBox(self.layoutWidget)
        self.comboForma.setObjectName(_fromUtf8("comboForma"))
        self.comboForma.addItem(_fromUtf8(""))
        self.comboForma.addItem(_fromUtf8(""))
        self.verticalLayout_5.addWidget(self.comboForma)
        self.horizontalLayout_4.addLayout(self.verticalLayout_5)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.textoPago = QtGui.QLabel(self.layoutWidget)
        self.textoPago.setMinimumSize(QtCore.QSize(46, 17))
        self.textoPago.setObjectName(_fromUtf8("textoPago"))
        self.verticalLayout_6.addWidget(self.textoPago)
        self.spinPago = QtGui.QSpinBox(self.layoutWidget)
        self.spinPago.setMaximum(999999999)
        self.spinPago.setObjectName(_fromUtf8("spinPago"))
        self.verticalLayout_6.addWidget(self.spinPago)
        self.horizontalLayout_4.addLayout(self.verticalLayout_6)
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.label_2 = QtGui.QLabel(self.layoutWidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_7.addWidget(self.label_2)
        self.labelVuelto = QtGui.QLabel(self.layoutWidget)
        self.labelVuelto.setObjectName(_fromUtf8("labelVuelto"))
        self.verticalLayout_7.addWidget(self.labelVuelto)
        self.horizontalLayout_4.addLayout(self.verticalLayout_7)
        self.pushButton_2 = QtGui.QPushButton(self.layoutWidget)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.horizontalLayout_4.addWidget(self.pushButton_2)
        self.verticalLayout_8.addLayout(self.horizontalLayout_4)
        self.label_4.setBuddy(self.spinCodigo)
        self.textoArticulo.setBuddy(self.comboArticulo)
        self.textoCantidad.setBuddy(self.spinCantidad)
        self.textoPrecio.setBuddy(self.spinPrecio)
        self.textoForma.setBuddy(self.comboForma)
        self.textoPago.setBuddy(self.spinPago)

        self.retranslateUi(Form)
        QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), Form.agregar)
        QtCore.QObject.connect(self.comboArticulo, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(QString)")), Form.cantidadPrecio)
        QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL(_fromUtf8("clicked()")), Form.vender)
        QtCore.QObject.connect(self.pushButton_3, QtCore.SIGNAL(_fromUtf8("clicked()")), Form.eliminar)
        QtCore.QObject.connect(self.spinCodigo, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), Form.cantidadPrecio2)
        QtCore.QObject.connect(self.spinPago, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), Form.vuelto)
        QtCore.QMetaObject.connectSlotsByName(Form)
        Form.setTabOrder(self.spinCodigo, self.comboArticulo)
        Form.setTabOrder(self.comboArticulo, self.spinCantidad)
        Form.setTabOrder(self.spinCantidad, self.spinPrecio)
        Form.setTabOrder(self.spinPrecio, self.pushButton)
        Form.setTabOrder(self.pushButton, self.treeWidget)
        Form.setTabOrder(self.treeWidget, self.pushButton_3)
        Form.setTabOrder(self.pushButton_3, self.comboForma)
        Form.setTabOrder(self.comboForma, self.spinPago)
        Form.setTabOrder(self.spinPago, self.pushButton_2)

    def retranslateUi(self, Form):
        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Nueva Venta - Indigo", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("Form", "Nueva Venta - INDIGO", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("Form", "Codigo articulo", None, QtGui.QApplication.UnicodeUTF8))
        self.textoArticulo.setText(QtGui.QApplication.translate("Form", "Nombre articulo", None, QtGui.QApplication.UnicodeUTF8))
        self.textoCantidad.setText(QtGui.QApplication.translate("Form", "Cantidad", None, QtGui.QApplication.UnicodeUTF8))
        self.textoPrecio.setText(QtGui.QApplication.translate("Form", "Precio", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("Form", "Agregar", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(0, QtGui.QApplication.translate("Form", "Codigo", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(2, QtGui.QApplication.translate("Form", "Cantidad", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(3, QtGui.QApplication.translate("Form", "Precio", None, QtGui.QApplication.UnicodeUTF8))
        self.treeWidget.headerItem().setText(4, QtGui.QApplication.translate("Form", "Subtotal", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_3.setText(QtGui.QApplication.translate("Form", "Quitar", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Form", "Total", None, QtGui.QApplication.UnicodeUTF8))
        self.labelTotal.setText(QtGui.QApplication.translate("Form", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.textoForma.setText(QtGui.QApplication.translate("Form", "Forma de pago", None, QtGui.QApplication.UnicodeUTF8))
        self.comboForma.setItemText(0, QtGui.QApplication.translate("Form", "Efectivo", None, QtGui.QApplication.UnicodeUTF8))
        self.comboForma.setItemText(1, QtGui.QApplication.translate("Form", "Credito", None, QtGui.QApplication.UnicodeUTF8))
        self.textoPago.setText(QtGui.QApplication.translate("Form", "Pago", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("Form", "Vuelto", None, QtGui.QApplication.UnicodeUTF8))
        self.labelVuelto.setText(QtGui.QApplication.translate("Form", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_2.setText(QtGui.QApplication.translate("Form", "Vender", None, QtGui.QApplication.UnicodeUTF8))

